<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="m" uri="/WEB-INF/mil.tld"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<!-- Meta, title, CSS, favicons, etc. -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<title>起步 &middot; Bootstrap</title>
<!-- Bootstrap core CSS -->
<link href="/statics/bootstrap-3.0.0/css/bootstrap.css" rel="stylesheet">
<!-- Documentation extras -->
<link href="/statics/css/style.css" rel="stylesheet">
<!-- Favicons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144"
	href="../docs-assets/ico/apple-touch-icon-144-precomposed.png">
<link rel="shortcut icon" href="../docs-assets/ico/favicon.png">
<!-- JavaScript -->
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
</head>
<body>
	<!-- Header
    ================================================== -->
	<jsp:include page="/jsp/include/header.jsp" />
	<!-- Content
    ================================================== -->
	<div class="container">
		<div class="row">
			<div class="col-md-3">
				<jsp:include page="/jsp/include/menu.jsp" />
			</div>
			<div class="col-md-9" role="main">
				<h3 class="page-header" id="download">管理满就减</h3>
				<ul class="nav nav-tabs">
  					<li <c:if test="${param.status==12}">class="active"</c:if>><a href="promList.do?status=2">进行中</a></li>
  					<li <c:if test="${param.status==11}">class="active"</c:if>><a href="promList.do?status=1">未开始</a></li>
  					<li <c:if test="${param.status==13}">class="active"</c:if>><a href="promList.do?status=3">已结束</a></li>
  					<li <c:if test="${param.status==3}">class="active"</c:if>><a href="promList.do?status=0">已取消</a></li>
				</ul>
				<div>
					<table class="table table-hover">
        				<thead>
          					<tr>
          						<th><input type="checkbox" name="chk_all_max" id="chk_all_max"/></th>
            					<th>活动名称</th>
								<th>活动类型</th>
								<th>活动状态</th>
								<th>活动时间</th>
								<th>参加商品</th>
								<th>操作</th>
          					</tr>
        				</thead>
        				<tbody>
        					<c:forEach items="${dp.list}" var="e">
          					<tr>
          						<td><input type="checkbox" name="chk_list_max" id="chk_list_max"/></td>
           	 					<td>
           	 						${e.name}
           	 					</td>
            					<td>
            						<c:if test="${e.type==1}">价格促销</c:if>
									<c:if test="${e.type==2}">满就减</c:if>
            					</td>
            					<td>
            						<c:if test="${param.status==11}">未开始</c:if>
            						<c:if test="${param.status==12}">进行中</c:if>
            						<c:if test="${param.status==13}">已结束</c:if>
            						<c:if test="${param.status==2}">已暂停</c:if>
            						<c:if test="${param.status==3}">已取消</c:if>
            					</td>
            					<td>
            						<fmt:formatDate value="${e.effectTime}" pattern="yyyy-MM-dd hh:mm"/>至
            						<fmt:formatDate value="${e.expireTime}" pattern="yyyy-MM-dd hh:mm"/>
            					</td>
            					<td>
            						5
            					</td>
            					<td>
            						编辑|取消
            					</td>
          					</tr>
          					</c:forEach>
        				</tbody>
      				</table>
					<m:page pageNo="${dp.pageNo}" pageSize="${dp.pageSize}" totalCount="${dp.totalRecord}" url="promList.do?${pageContext.request.queryString}"/>
				</div>
			</div>
		</div>
	</div>

	<!-- Footer
    ================================================== -->
	<jsp:include page="/jsp/include/footer.jsp" />

	<!-- JavaScript
	================================================== -->
	<script src="/statics/bootstrap-3.0.0/js/bootstrap.js"></script>
	<script src="/statics/js/application.js"></script>
</body>
</html>